import {EventsOn} from "../../wailsjs/runtime";
import {
    CallBackKyeBoardCombineClick,
    CallbackMessageAddContent,
    CallBackMouseLongClick,
    CallbackNewChat,
    CallbackShowError,
    CallbackTest,
    CallbackWindowChange
} from "./callback";


//注册时间
export default function RegisterEvent(){
     console.log(" 注册event---")
    //窗体切换事件,注意：事件名称不能用常量来
    EventsOn("window_change", CallbackWindowChange)
    //收到消息流时间
    // EventsOn("message_stream", CallbackMessageStream)
    EventsOn("message_add_content", CallbackMessageAddContent)
    EventsOn("event1", CallbackTest)

    EventsOn("mouse_long_click", CallBackMouseLongClick)
    EventsOn("keyboard_combine_click", CallBackKyeBoardCombineClick)
    EventsOn("show_error", CallbackShowError)

    EventsOn("new_chat", CallbackNewChat)
   // EventsOn("message_content_error", CallBackMessageError)
}

